﻿using System;
using DataLayer;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            IProductRepository productRepository = new ProductRepository();
            var rp = new DataLayer.Generic.GenericRepository<Product, NorthwindDataContext>();
            foreach (Product p in productRepository.SelectAll())
            {
                Console.WriteLine(p.ProductName);
            }

            ICategoryRepository categoryRepository = new CategoryRepository();
            foreach (Category c in categoryRepository.SelectAll())
            {
                Console.WriteLine(c.CategoryName);
            }

            Console.ReadKey();
        }
    }
}
